package com.inlycat.mapper;

import com.inlycat.entity.Thumb;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月13日下午12:40:45
 * @category 点赞mapper接口
 **/
public interface ThumbMapper {
	
	/**
	 * 新增赞
	 * @param thumb
	 * @return
	 */
	boolean insert(Thumb thumb) throws RuntimeException;
	
	/**
	 * 取消赞
	 * @param thumb
	 * @return
	 */
	boolean delete(Thumb thumb) throws RuntimeException;
	
	/**
	 * 是否已赞
	 * @param thumb
	 * @return
	 */
	int hasThumb(Thumb thumb) throws RuntimeException;

}
